import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 细纱开台
 * */
export const productionPrdNoticeMachineOpeningCreate = (data) => postRequest('/production/prd-notice-machine-opening/create', data);
export const productionPrdNoticeMachineOpeningUpdate = (data) => putRequest('/production/prd-notice-machine-opening/update', data);
export const productionPrdNoticeMachineOpeningOpening = (params) => postRequest('/production/prd-notice-machine-opening/opening', params);
export const productionPrdNoticeMachineOpeningBatchOpening = (params) => postRequest('/production/prd-notice-machine-opening/batch-opening', params);
export const productionPrdNoticeMachineOpeningBatchClose = (params) => postRequest('/production/prd-notice-machine-close/batch-close', params);
export const productionPrdNoticeMachineClearOpeningOpening = (params) => postRequest('/production/prd-notice-machine-opening/clear-opening', params);
export const productionMachineShiftProductOutputUpdate = (params) => postRequest('/production/machine-shift-product-output/update', params);

// 了机并开台
export const productionPrdNoticeMachineCloseCloseOpen = (params) => postRequest('/production/prd-notice-machine-close/close-open', params);
export const productionPrdNoticeMachineOpeningCheckOpening = (params) => postRequest('/production/prd-notice-machine-opening/checkOpening', params);

// 获取机台采集的仪表数据
export const productionPrdNoticeMachineChangeGetMachineData = (params) => getRequest('/production/prd-notice-machine-change/getMachineData', params);
export const productionPrdNoticeMachineChangeGetMachineDataList = (params) => postRequest('/production/prd-notice-machine-change/getMachineData-list', params);

// 了机和取消
export const productionPrdNoticeMachineCloseClose = (params) => postRequest('/production/prd-notice-machine-close/close', params);
export const productionPrdNoticeMachineCloseClearClose = (params) => postRequest('/production/prd-notice-machine-close/clear-close', params);

// 完成翻改并开台
export const productionPrdNoticeMachineOpeningCompleteRenovationOpening = (data, params) => postRequest('/production/prd-notice-machine-change/complete-renovation-opening', data, params);

// 查看机台是否了机
export const productionPrdNoticeMachineCloseRunState = (data, params) => getRequest('/production/prd-notice-machine-close/run-state', data, params);

// 机台视图
export const productionPrdMachineView = (data, params) => postRequest('/production/prd-machine/view', data, params);
export const productionPrdNoticeMachineChangeGetMachineStopDataPage = (data, params) => getRequest('/production/prd-notice-machine-change/getMachineStopDataPage', data, params);
